#!/usr/bin/python
import pymongo
import numpy as np
# conn = pymongo.MongoClient('192.168.1.101', 27017)
# db = conn.db_test
# aa = db.test

# user = {'name': '123','age':'10'}
#
# data={'name':'1'}
#
# aa.insert(data)

image_paths = "/data/images/disk1/app/2016-12-27/0/experience/14827689611580.39415985718486213.jpg"
batch_size=64

for i in range((len(image_paths) + 63) / 64):
    # batch = np.zeros((64, 3, 224, 224),dtype=np.float32)
    img_slice = image_paths[i*batch_size: i*batch_size + batch_size]
    for idx, x in enumerate(img_slice):
        print idx , x